﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp4
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            var uid = yhm.Text;
            var pwd = mima.Text;
            var mi = qrenmima.Text;

            var hasUid = !String.IsNullOrEmpty(uid);
            var hasPwd = !String.IsNullOrEmpty(pwd);
            var hasMi = !String.IsNullOrEmpty(mi);
            var hasUse = pwd == mi;
            if (hasUid && hasPwd && hasUse)
            {
                MessageBox.Show("注册成功");
            }
            else
            {


                MessageBox.Show("请重新输入");

            }
        }
    }
}
